home *** CD-ROM | disk | FTP | other *** search
Unknown | 2003-01-01 | 10.4 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 01 ff ff 01 00 08 00 43 | 50 69 63 50 61 67 65 01 |.......C|PicPage.|
|00000010| 00 ff ff 01 00 09 00 43 | 50 69 63 4c 61 79 65 72 |.......C|PicLayer|
|00000020| 01 00 ff ff 01 00 09 00 | 43 50 69 63 46 72 61 6d |........|CPicFram|
|00000030| 65 01 00 ff ff 01 00 0a | 00 43 50 69 63 53 70 72 |e.......|.CPicSpr|
|00000040| 69 74 65 01 00 00 00 00 | 00 00 00 00 00 00 00 0a |ite.....|........|
|00000050| 00 00 01 00 00 00 00 00 | 00 00 00 00 df f4 00 00 |........|........|
|00000060| 00 00 00 00 00 00 00 00 | 00 00 02 00 01 00 01 00 |........|........|
|00000070| 00 00 01 00 00 00 01 00 | 00 00 01 00 00 00 00 64 |........|.......d|
|00000080| 00 00 00 00 ff 00 50 00 | 00 00 06 01 00 00 00 01 |......P.|........|
|00000090| 00 00 00 65 25 00 00 00 | 00 00 00 00 0f 73 75 70 |...e%...|.....sup|
|000000a0| 65 72 43 6c 61 73 73 41 | 73 73 65 74 02 01 00 00 |erClassA|sset....|
|000000b0| 00 01 00 01 01 00 01 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 3b 8e | 54 ab 6d 83 41 a4 30 24 |......;.|T.m.A.0$|
|000000d0| 45 ba 14 ab ea 00 00 00 | 00 00 00 00 00 01 00 00 |E.......|........|
|000000e0| 00 00 00 00 00 00 80 00 | 00 00 80 02 00 00 01 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 05 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 16 01 00 00 06 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 ff ff ff 3f | ff ff 00 01 00 00 00 01 |.......?|........|
|00000130| 00 00 00 ef 4c 00 00 00 | 00 00 00 00 00 00 00 00 |....L...|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 01 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 80 00 00 00 80 0a | 0a 53 75 70 65 72 43 6c |........|.SuperCl|
|00000170| 61 73 73 00 01 01 ff ff | ff ff 4f ff 4f ff 00 00 |ass.....|..O.O...|
|00000180| 00 00 01 00 00 00 01 00 | 00 01 00 03 80 01 00 05 |........|........|
|00000190| 80 01 00 07 80 01 00 00 | 00 03 00 00 00 16 00 00 |........|........|
|000001a0| 00 0a 00 00 01 00 00 00 | 00 00 00 00 00 00 df f4 |........|........|
|000001b0| 00 00 03 00 00 00 16 00 | 00 00 00 00 02 00 01 00 |........|........|
|000001c0| 01 00 00 00 01 00 00 00 | 01 00 00 00 01 00 00 00 |........|........|
|000001d0| 00 64 00 00 00 00 ff 00 | 55 00 00 00 06 01 00 00 |.d......|U.......|
|000001e0| 00 01 00 00 00 69 33 00 | 00 00 00 00 00 00 07 64 |.....i3.|.......d|
|000001f0| 50 41 73 73 65 74 02 01 | 00 00 00 01 00 01 01 00 |PAsset..|........|
|00000200| 01 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 e6 |........|........|
|00000210| 88 b3 d4 7d be 39 4c a5 | 6f a0 3c b1 ed 8b 96 00 |...}.9L.|o.<.....|
|00000220| 00 00 00 00 00 00 00 01 | 00 00 00 07 80 01 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 0a 08 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 23 00 | 00 00 00 00 00 00 00 00 |......#.|........|
|00000250| 00 00 00 00 02 00 01 00 | 01 00 00 00 01 00 00 00 |........|........|
|00000260| 01 00 00 00 01 00 00 00 | 00 64 00 00 00 00 ff 00 |........|.d......|
|00000270| 56 00 00 00 06 01 00 00 | 00 01 00 00 00 30 46 00 |V.......|.....0F.|
|00000280| 00 00 00 00 00 00 09 49 | 74 65 6d 41 73 73 65 74 |.......I|temAsset|
|00000290| 02 01 00 00 00 01 00 01 | 01 00 01 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 3c 53 cd 1c 61 e7 de |........|.<S..a..|
|000002b0| 40 ba 20 1e e2 2e fe e7 | 17 00 00 00 00 00 00 00 |@. .....|........|
|000002c0| 00 01 00 00 00 00 00 00 | 00 00 80 00 00 00 80 02 |........|........|
|000002d0| 00 00 01 00 00 00 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 05 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 16 01 | 00 00 06 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | ff ff ff 3f ff ff 00 01 |........|...?....|
|00000310| 00 00 00 01 00 00 00 e5 | 3c 00 00 00 00 00 00 00 |........|<.......|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 80 00 | 00 00 80 0a 0e 56 69 72 |........|.....Vir|
|00000350| 74 75 61 6c 20 41 73 73 | 65 74 73 00 01 01 ff ff |tual Ass|ets.....|
|00000360| ff ff 99 33 cc ff 00 00 | 00 00 01 00 00 00 00 00 |...3....|........|
|00000370| 00 01 00 03 80 01 00 05 | 80 01 00 00 00 00 00 00 |........|........|
|00000380| 80 00 00 00 80 02 00 00 | 01 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 01 00 00 00 | 00 00 00 00 00 00 05 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 16 01 00 00 |........|........|
|000003b0| 06 00 00 00 00 00 00 00 | 00 00 00 00 00 00 ff ff |........|........|
|000003c0| ff 3f ff ff 00 01 00 00 | 00 01 00 00 00 36 3a 00 |.?......|.....6:.|
|000003d0| 00 00 00 00 00 ff 80 25 | 23 69 6e 69 74 63 6c 69 |.......%|#initcli|
|000003e0| 70 20 31 0a 2f 2a 0a 09 | 09 46 53 65 6c 65 63 74 |p 1./*..|.FSelect|
|000003f0| 61 62 6c 65 4c 69 73 74 | 43 6c 61 73 73 0a 09 09 |ableList|Class...|
|00000400| 45 58 54 45 4e 44 53 20 | 46 55 49 43 6f 6d 70 6f |EXTENDS |FUICompo|
|00000410| 6e 65 6e 74 43 6c 61 73 | 73 0a 09 09 0a 09 09 54 |nentClas|s......T|
|00000420| 68 69 73 20 69 73 20 73 | 75 70 65 72 43 6c 61 73 |his is s|uperClas|
|00000430| 73 20 66 6f 72 20 61 6c | 6c 20 73 65 6c 65 63 74 |s for al|l select|
|00000440| 61 62 6c 65 20 6c 69 73 | 74 73 20 69 6e 20 74 68 |able lis|ts in th|
|00000450| 65 20 74 72 65 65 2e 0a | 2a 2f 0a 0a 66 75 6e 63 |e tree..|*/..func|
|00000460| 74 69 6f 6e 20 46 53 65 | 6c 65 63 74 61 62 6c 65 |tion FSe|lectable|
|00000470| 4c 69 73 74 43 6c 61 73 | 73 28 29 0a 7b 0a 09 74 |ListClas|s().{..t|
|00000480| 68 69 73 2e 69 6e 69 74 | 28 29 3b 0a 7d 0a 0a 46 |his.init|();.}..F|
|00000490| 53 65 6c 65 63 74 61 62 | 6c 65 4c 69 73 74 43 6c |Selectab|leListCl|
|000004a0| 61 73 73 2e 70 72 6f 74 | 6f 74 79 70 65 20 3d 20 |ass.prot|otype = |
|000004b0| 6e 65 77 20 46 55 49 43 | 6f 6d 70 6f 6e 65 6e 74 |new FUIC|omponent|
|000004c0| 43 6c 61 73 73 28 29 3b | 0a 0a 0a 46 53 65 6c 65 |Class();|...FSele|
|000004d0| 63 74 61 62 6c 65 4c 69 | 73 74 43 6c 61 73 73 2e |ctableLi|stClass.|
|000004e0| 70 72 6f 74 6f 74 79 70 | 65 2e 69 6e 69 74 20 3d |prototyp|e.init =|
|000004f0| 20 66 75 6e 63 74 69 6f | 6e 28 29 20 0a 7b 0a 09 | functio|n() .{..|
|00000500| 73 75 70 65 72 2e 69 6e | 69 74 28 29 3b 0a 09 74 |super.in|it();..t|
|00000510| 68 69 73 2e 65 6e 61 62 | 6c 65 20 3d 20 74 72 75 |his.enab|le = tru|
|00000520| 65 3b 0a 09 74 68 69 73 | 2e 73 65 6c 65 63 74 65 |e;..this|.selecte|
|00000530| 64 20 3d 20 6e 65 77 20 | 41 72 72 61 79 28 29 3b |d = new |Array();|
|00000540| 0a 09 74 68 69 73 2e 74 | 6f 70 44 69 73 70 6c 61 |..this.t|opDispla|
|00000550| 79 65 64 20 3d 20 74 68 | 69 73 2e 6e 75 6d 44 69 |yed = th|is.numDi|
|00000560| 73 70 6c 61 79 65 64 20 | 3d 20 30 3b 0a 09 74 68 |splayed |= 0;..th|
|00000570| 69 73 2e 6c 61 73 74 53 | 65 6c 65 63 74 65 64 20 |is.lastS|elected |
|00000580| 3d 20 30 3b 0a 09 74 68 | 69 73 2e 74 61 62 43 68 |= 0;..th|is.tabCh|
|00000590| 69 6c 64 72 65 6e 20 3d | 20 66 61 6c 73 65 3b 0a |ildren =| false;.|
|000005a0| 09 69 66 20 28 74 68 69 | 73 2e 5f 6e 61 6d 65 21 |.if (thi|s._name!|
|000005b0| 3d 75 6e 64 65 66 69 6e | 65 64 29 20 7b 0a 09 09 |=undefin|ed) {...|
|000005c0| 74 68 69 73 2e 64 61 74 | 61 50 72 6f 76 69 64 65 |this.dat|aProvide|
|000005d0| 72 20 3d 20 6e 65 77 20 | 44 61 74 61 50 72 6f 76 |r = new |DataProv|
|000005e0| 69 64 65 72 43 6c 61 73 | 73 28 29 3b 0a 09 09 74 |iderClas|s();...t|
|000005f0| 68 69 73 2e 64 61 74 61 | 50 72 6f 76 69 64 65 72 |his.data|Provider|
|00000600| 2e 61 64 64 56 69 65 77 | 28 74 68 69 73 29 3b 0a |.addView|(this);.|
|00000610| 09 7d 0a 7d 0a 0a 0a 2f | 2f 20 3a 3a 3a 20 50 55 |.}.}.../|/ ::: PU|
|00000620| 42 4c 49 43 20 4d 45 54 | 48 4f 44 53 0a 0a 46 53 |BLIC MET|HODS..FS|
|00000630| 65 6c 65 63 74 61 62 6c | 65 4c 69 73 74 43 6c 61 |electabl|eListCla|
|00000640| 73 73 2e 70 72 6f 74 6f | 74 79 70 65 2e 61 64 64 |ss.proto|type.add|
|00000650| 49 74 65 6d 41 74 20 3d | 20 66 75 6e 63 74 69 6f |ItemAt =| functio|
|00000660| 6e 28 69 6e 64 65 78 2c | 20 6c 61 62 65 6c 2c 20 |n(index,| label, |
|00000670| 64 61 74 61 29 0a 7b 0a | 09 69 66 20 28 69 6e 64 |data).{.|.if (ind|
|00000680| 65 78 3c 30 20 7c 7c 20 | 21 74 68 69 73 2e 65 6e |ex<0 || |!this.en|
|00000690| 61 62 6c 65 29 20 72 65 | 74 75 72 6e 3b 0a 09 74 |able) re|turn;..t|
|000006a0| 68 69 73 2e 64 61 74 61 | 50 72 6f 76 69 64 65 72 |his.data|Provider|
|000006b0| 2e 61 64 64 49 74 65 6d | 41 74 28 69 6e 64 65 78 |.addItem|At(index|
|000006c0| 2c 20 7b 6c 61 62 65 6c | 3a 6c 61 62 65 6c 2c 20 |, {label|:label, |
|000006d0| 64 61 74 61 3a 64 61 74 | 61 7d 29 3b 20 0a 7d 0a |data:dat|a}); .}.|
|000006e0| 0a 46 53 65 6c 65 63 74 | 61 62 6c 65 4c 69 73 74 |.FSelect|ableList|
|000006f0| 43 6c 61 73 73 2e 70 72 | 6f 74 6f 74 79 70 65 2e |Class.pr|ototype.|
|00000700| 61 64 64 49 74 65 6d 20 | 3d 20 66 75 6e 63 74 69 |addItem |= functi|
|00000710| 6f 6e 28 6c 61 62 65 6c | 2c 20 64 61 74 61 29 0a |on(label|, data).|
|00000720| 7b 20 0a 09 69 66 20 28 | 21 74 68 69 73 2e 65 6e |{ ..if (|!this.en|
|00000730| 61 62 6c 65 29 20 72 65 | 74 75 72 6e 3b 0a 09 74 |able) re|turn;..t|
|00000740| 68 69 73 2e 64 61 74 61 | 50 72 6f 76 69 64 65 72 |his.data|Provider|
|00000750| 2e 61 64 64 49 74 65 6d | 28 7b 6c 61 62 65 6c 3a |.addItem|({label:|
|00000760| 6c 61 62 65 6c 2c 20 64 | 61 74 61 3a 64 61 74 61 |label, d|ata:data|
|00000770| 7d 29 3b 0a 7d 0a 0a 46 | 53 65 6c 65 63 74 61 62 |});.}..F|Selectab|
|00000780| 6c 65 4c 69 73 74 43 6c | 61 73 73 2e 70 72 6f 74 |leListCl|ass.prot|
|00000790| 6f 74 79 70 65 2e 72 65 | 6d 6f 76 65 49 74 65 6d |otype.re|moveItem|
|000007a0| 41 74 20 3d 20 66 75 6e | 63 74 69 6f 6e 28 69 6e |At = fun|ction(in|
|000007b0| 64 65 78 29 20 0a 7b 0a | 09 74 68 69 73 2e 73 65 |dex) .{.|.this.se|
|000007c0| 6c 65 63 74 48 6f 6c 64 | 65 72 20 3d 20 74 68 69 |lectHold|er = thi|
|000007d0| 73 2e 67 65 74 53 65 6c | 65 63 74 65 64 49 6e 64 |s.getSel|ectedInd|
|000007e0| 65 78 28 29 3b 0a 09 76 | 61 72 20 69 74 65 6d 20 |ex();..v|ar item |
|000007f0| 3d 20 74 68 69 73 2e 67 | 65 74 49 74 65 6d 41 74 |= this.g|etItemAt|
|00000800| 28 69 6e 64 65 78 29 3b | 0a 09 74 68 69 73 2e 64 |(index);|..this.d|
|00000810| 61 74 61 50 72 6f 76 69 | 64 65 72 2e 72 65 6d 6f |ataProvi|der.remo|
|00000820| 76 65 49 74 65 6d 41 74 | 28 69 6e 64 65 78 29 3b |veItemAt|(index);|
|00000830| 0a 09 72 65 74 75 72 6e | 20 69 74 65 6d 3b 0a 7d |..return| item;.}|
|00000840| 0a 0a 46 53 65 6c 65 63 | 74 61 62 6c 65 4c 69 73 |..FSelec|tableLis|
|00000850| 74 43 6c 61 73 73 2e 70 | 72 6f 74 6f 74 79 70 65 |tClass.p|rototype|
|00000860| 2e 72 65 6d 6f 76 65 41 | 6c 6c 20 3d 20 66 75 6e |.removeA|ll = fun|
|00000870| 63 74 69 6f 6e 28 29 0a | 7b 0a 09 74 68 69 73 2e |ction().|{..this.|
|00000880| 64 61 74 61 50 72 6f 76 | 69 64 65 72 2e 72 65 6d |dataProv|ider.rem|
|00000890| 6f 76 65 41 6c 6c 28 29 | 3b 0a 7d 0a 0a 46 53 65 |oveAll()|;.}..FSe|
|000008a0| 6c 65 63 74 61 62 6c 65 | 4c 69 73 74 43 6c 61 73 |lectable|ListClas|
|000008b0| 73 2e 70 72 6f 74 6f 74 | 79 70 65 2e 72 65 70 6c |s.protot|ype.repl|
|000008c0| 61 63 65 49 74 65 6d 41 | 74 20 3d 20 66 75 6e 63 |aceItemA|t = func|
|000008d0| 74 69 6f 6e 28 69 6e 64 | 65 78 2c 20 6e 65 77 4c |tion(ind|ex, newL|
|000008e0| 61 62 65 6c 2c 20 6e 65 | 77 44 61 74 61 29 20 0a |abel, ne|wData) .|
|000008f0| 7b 0a 09 74 68 69 73 2e | 64 61 74 61 50 72 6f 76 |{..this.|dataProv|
|00000900| 69 64 65 72 2e 72 65 70 | 6c 61 63 65 49 74 65 6d |ider.rep|laceItem|
|00000910| 41 74 28 69 6e 64 65 78 | 2c 20 7b 6c 61 62 65 6c |At(index|, {label|
|00000920| 3a 6e 65 77 4c 61 62 65 | 6c 2c 20 64 61 74 61 3a |:newLabe|l, data:|
|00000930| 6e 65 77 44 61 74 61 7d | 20 29 3b 0a 7d 0a 0a 46 |newData}| );.}..F|
|00000940| 53 65 6c 65 63 74 61 62 | 6c 65 4c 69 73 74 43 6c |Selectab|leListCl|
|00000950| 61 73 73 2e 70 72 6f 74 | 6f 74 79 70 65 2e 73 6f |ass.prot|otype.so|
|00000960| 72 74 49 74 65 6d 73 42 | 79 20 3d 20 66 75 6e 63 |rtItemsB|y = func|
|00000970| 74 69 6f 6e 28 66 69 65 | 6c 64 4e 61 6d 65 2c 20 |tion(fie|ldName, |
|00000980| 6f 72 64 65 72 29 20 0a | 7b 0a 09 74 68 69 73 2e |order) .|{..this.|
|00000990| 6c 61 73 74 53 65 6c 49 | 44 20 3d 20 74 68 69 73 |lastSelI|D = this|
|000009a0| 2e 64 61 74 61 50 72 6f | 76 69 64 65 72 2e 67 65 |.dataPro|vider.ge|
|000009b0| 74 49 74 65 6d 49 44 28 | 74 68 69 73 2e 6c 61 73 |tItemID(|this.las|
|000009c0| 74 53 65 6c 65 63 74 65 | 64 29 3b 0a 09 74 68 69 |tSelecte|d);..thi|
|000009d0| 73 2e 64 61 74 61 50 72 | 6f 76 69 64 65 72 2e 73 |s.dataPr|ovider.s|
|000009e0| 6f 72 74 49 74 65 6d 73 | 42 79 28 66 69 65 6c 64 |ortItems|By(field|
|000009f0| 4e 61 6d 65 2c 20 6f 72 | 64 65 72 29 3b 0a 7d 0a |Name, or|der);.}.|
|00000a00| 0a 46 53 65 6c 65 63 74 | 61 62 6c 65 4c 69 73 74 |.FSelect|ableList|
|00000a10| 43 6c 61 73 73 2e 70 72 | 6f 74 6f 74 79 70 65 2e |Class.pr|ototype.|
|00000a20| 67 65 74 4c 65 6e 67 74 | 68 20 3d 20 66 75 6e 63 |getLengt|h = func|
|00000a30| 74 69 6f 6e 28 29 0a 7b | 0a 09 72 65 74 75 72 6e |tion().{|..return|
|00000a40| 20 74 68 69 73 2e 64 61 | 74 61 50 72 6f 76 69 64 | this.da|taProvid|
|00000a50| 65 72 2e 67 65 74 4c 65 | 6e 67 74 68 28 29 3b 0a |er.getLe|ngth();.|
|00000a60| 7d 0a 0a 46 53 65 6c 65 | 63 74 61 62 6c 65 4c 69 |}..FSele|ctableLi|
|00000a70| 73 74 43 6c 61 73 73 2e | 70 72 6f 74 6f 74 79 70 |stClass.|prototyp|
|00000a80| 65 2e 67 65 74 53 65 6c | 65 63 74 65 64 49 6e 64 |e.getSel|ectedInd|
|00000a90| 65 78 20 3d 20 66 75 6e | 63 74 69 6f 6e 28 29 0a |ex = fun|ction().|
|00000aa0| 7b 0a 09 66 6f 72 20 28 | 76 61 72 20 75 6e 69 71 |{..for (|var uniq|
|00000ab0| 75 65 49 44 20 69 6e 20 | 74 68 69 73 2e 73 65 6c |ueID in |this.sel|
|00000ac0| 65 63 74 65 64 29 20 7b | 0a 09 09 76 61 72 20 74 |ected) {|...var t|
|00000ad0| 6d 70 49 6e 64 20 3d 20 | 74 68 69 73 2e 73 65 6c |mpInd = |this.sel|
|00000ae0| 65 63 74 65 64 5b 75 6e | 69 71 75 65 49 44 5d 2e |ected[un|iqueID].|
|00000af0| 73 49 6e 64 65 78 3b 0a | 09 09 69 66 20 28 74 6d |sIndex;.|..if (tm|
|00000b00| 70 49 6e 64 21 3d 75 6e | 64 65 66 69 6e 65 64 29 |pInd!=un|defined)|
|00000b10| 20 7b 0a 09 09 09 72 65 | 74 75 72 6e 20 74 6d 70 | {....re|turn tmp|
|00000b20| 49 6e 64 3b 0a 09 09 7d | 0a 09 7d 0a 7d 0a 0a 46 |Ind;...}|..}.}..F|
|00000b30| 53 65 6c 65 63 74 61 62 | 6c 65 4c 69 73 74 43 6c |Selectab|leListCl|
|00000b40| 61 73 73 2e 70 72 6f 74 | 6f 74 79 70 65 2e 67 65 |ass.prot|otype.ge|
|00000b50| 74 53 65 6c 65 63 74 65 | 64 49 74 65 6d 20 3d 20 |tSelecte|dItem = |
|00000b60| 66 75 6e 63 74 69 6f 6e | 28 29 20 0a 7b 0a 09 72 |function|() .{..r|
|00000b70| 65 74 75 72 6e 20 74 68 | 69 73 2e 67 65 74 49 74 |eturn th|is.getIt|
|00000b80| 65 6d 41 74 28 74 68 69 | 73 2e 67 65 74 53 65 6c |emAt(thi|s.getSel|
|00000b90| 65 63 74 65 64 49 6e 64 | 65 78 28 29 29 3b 0a 7d |ectedInd|ex());.}|
|00000ba0| 0a 0a 46 53 65 6c 65 63 | 74 61 62 6c 65 4c 69 73 |..FSelec|tableLis|
|00000bb0| 74 43 6c 61 73 73 2e 70 | 72 6f 74 6f 74 79 70 65 |tClass.p|rototype|
|00000bc0| 2e 67 65 74 49 74 65 6d | 41 74 20 3d 20 66 75 6e |.getItem|At = fun|
|00000bd0| 63 74 69 6f 6e 28 69 6e | 64 65 78 29 0a 7b 0a 09 |ction(in|dex).{..|
|00000be0| 72 65 74 75 72 6e 20 74 | 68 69 73 2e 64 61 74 61 |return t|his.data|
|00000bf0| 50 72 6f 76 69 64 65 72 | 2e 67 65 74 49 74 65 6d |Provider|.getItem|
|00000c00| 41 74 28 69 6e 64 65 78 | 29 3b 0a 7d 0a 0a 46 53 |At(index|);.}..FS|
|00000c10| 65 6c 65 63 74 61 62 6c | 65 4c 69 73 74 43 6c 61 |electabl|eListCla|
|00000c20| 73 73 2e 70 72 6f 74 6f | 74 79 70 65 2e 67 65 74 |ss.proto|type.get|
|00000c30| 45 6e 61 62 6c 65 64 20 | 3d 20 66 75 6e 63 74 69 |Enabled |= functi|
|00000c40| 6f 6e 28 29 20 0a 7b 0a | 09 72 65 74 75 72 6e 20 |on() .{.|.return |
|00000c50| 74 68 69 73 2e 65 6e 61 | 62 6c 65 3b 0a 7d 0a 0a |this.ena|ble;.}..|
|00000c60| 46 53 65 6c 65 63 74 61 | 62 6c 65 4c 69 73 74 43 |FSelecta|bleListC|
|00000c70| 6c 61 73 73 2e 70 72 6f | 74 6f 74 79 70 65 2e 67 |lass.pro|totype.g|
|00000c80| 65 74 56 61 6c 75 65 20 | 3d 20 66 75 6e 63 74 69 |etValue |= functi|
|00000c90| 6f 6e 28 29 20 0a 7b 0a | 09 76 61 72 20 69 74 65 |on() .{.|.var ite|
|00000ca0| 6d 20 3d 20 74 68 69 73 | 2e 67 65 74 53 65 6c 65 |m = this|.getSele|
|00000cb0| 63 74 65 64 49 74 65 6d | 28 29 3b 0a 09 72 65 74 |ctedItem|();..ret|
|00000cc0| 75 72 6e 20 28 69 74 65 | 6d 2e 64 61 74 61 3d 3d |urn (ite|m.data==|
|00000cd0| 75 6e 64 65 66 69 6e 65 | 64 29 20 3f 20 69 74 65 |undefine|d) ? ite|
|00000ce0| 6d 2e 6c 61 62 65 6c 20 | 3a 20 69 74 65 6d 2e 64 |m.label |: item.d|
|00000cf0| 61 74 61 3b 0a 7d 0a 0a | 0a 2f 2f 20 53 65 74 73 |ata;.}..|.// Sets|
|00000d00| 20 74 68 65 20 69 6e 64 | 69 63 65 73 20 73 70 65 | the ind|ices spe|
|00000d10| 63 69 66 69 65 64 2c 20 | 65 78 65 63 75 74 65 73 |cified, |executes|
|00000d20| 20 63 68 61 6e 67 65 20 | 68 61 6e 64 6c 65 72 0a | change |handler.|
|00000d30| 46 53 65 6c 65 63 74 61 | 62 6c 65 4c 69 73 74 43 |FSelecta|bleListC|
|00000d40| 6c 61 73 73 2e 70 72 6f | 74 6f 74 79 70 65 2e 73 |lass.pro|totype.s|
|00000d50| 65 74 53 65 6c 65 63 74 | 65 64 49 6e 64 65 78 20 |etSelect|edIndex |
|00000d60| 3d 20 66 75 6e 63 74 69 | 6f 6e 28 69 6e 64 65 78 |= functi|on(index|
|00000d70| 2c 20 66 6c 61 67 29 20 | 0a 7b 0a 09 69 66 20 28 |, flag) |.{..if (|
|00000d80| 69 6e 64 65 78 3e 3d 30 | 20 26 26 20 69 6e 64 65 |index>=0| && inde|
|00000d90| 78 3c 74 68 69 73 2e 67 | 65 74 4c 65 6e 67 74 68 |x<this.g|etLength|
|00000da0| 28 29 20 26 26 20 74 68 | 69 73 2e 65 6e 61 62 6c |() && th|is.enabl|
|00000db0| 65 29 20 7b 0a 09 09 74 | 68 69 73 2e 63 6c 65 61 |e) {...t|his.clea|
|00000dc0| 72 53 65 6c 65 63 74 65 | 64 28 29 3b 0a 09 09 74 |rSelecte|d();...t|
|00000dd0| 68 69 73 2e 73 65 6c 65 | 63 74 49 74 65 6d 28 69 |his.sele|ctItem(i|
|00000de0| 6e 64 65 78 2c 20 74 72 | 75 65 29 3b 0a 09 09 74 |ndex, tr|ue);...t|
|00000df0| 68 69 73 2e 6c 61 73 74 | 53 65 6c 65 63 74 65 64 |his.last|Selected|
|00000e00| 20 3d 20 69 6e 64 65 78 | 3b 0a 09 09 74 68 69 73 | = index|;...this|
|00000e10| 2e 69 6e 76 61 6c 69 64 | 61 74 65 28 22 75 70 64 |.invalid|ate("upd|
|00000e20| 61 74 65 43 6f 6e 74 72 | 6f 6c 22 29 3b 0a 09 09 |ateContr|ol");...|
|00000e30| 69 66 20 28 66 6c 61 67 | 21 3d 66 61 6c 73 65 29 |if (flag|!=false)|
|00000e40| 20 7b 0a 09 09 09 74 68 | 69 73 2e 65 78 65 63 75 | {....th|is.execu|
|00000e50| 74 65 43 61 6c 6c 42 61 | 63 6b 28 29 3b 0a 09 09 |teCallBa|ck();...|
|00000e60| 7d 0a 09 7d 0a 7d 0a 0a | 46 53 65 6c 65 63 74 61 |}..}.}..|FSelecta|
|00000e70| 62 6c 65 4c 69 73 74 43 | 6c 61 73 73 2e 70 72 6f |bleListC|lass.pro|
|00000e80| 74 6f 74 79 70 65 2e 73 | 65 74 44 61 74 61 50 72 |totype.s|etDataPr|
|00000e90| 6f 76 69 64 65 72 20 3d | 20 66 75 6e 63 74 69 6f |ovider =| functio|
|00000ea0| 6e 28 6f 62 6a 29 0a 7b | 0a 09 74 68 69 73 2e 73 |n(obj).{|..this.s|
|00000eb0| 65 74 53 63 72 6f 6c 6c | 50 6f 73 69 74 69 6f 6e |etScroll|Position|
|00000ec0| 28 30 29 3b 0a 09 74 68 | 69 73 2e 63 6c 65 61 72 |(0);..th|is.clear|
|00000ed0| 53 65 6c 65 63 74 65 64 | 28 29 3b 0a 09 69 66 20 |Selected|();..if |
|00000ee0| 28 6f 62 6a 20 69 6e 73 | 74 61 6e 63 65 6f 66 20 |(obj ins|tanceof |
|00000ef0| 41 72 72 61 79 29 20 7b | 0a 09 09 74 68 69 73 2e |Array) {|...this.|
|00000f00| 64 61 74 61 50 72 6f 76 | 69 64 65 72 20 3d 20 6e |dataProv|ider = n|
|00000f10| 65 77 20 44 61 74 61 50 | 72 6f 76 69 64 65 72 43 |ew DataP|roviderC|
|00000f20| 6c 61 73 73 28 29 3b 0a | 09 09 66 6f 72 20 28 76 |lass();.|..for (v|
|00000f30| 61 72 20 69 3d 30 3b 20 | 69 3c 6f 62 6a 2e 6c 65 |ar i=0; |i<obj.le|
|00000f40| 6e 67 74 68 3b 20 69 2b | 2b 29 20 7b 0a 09 09 09 |ngth; i+|+) {....|
|00000f50| 76 61 72 20 76 61 6c 75 | 65 20 3d 20 28 74 79 70 |var valu|e = (typ|
|00000f60| 65 6f 66 28 6f 62 6a 5b | 69 5d 29 3d 3d 22 73 74 |eof(obj[|i])=="st|
|00000f70| 72 69 6e 67 22 29 20 3f | 20 7b 6c 61 62 65 6c 3a |ring") ?| {label:|
|00000f80| 6f 62 6a 5b 69 5d 7d 20 | 3a 20 6f 62 6a 5b 69 5d |obj[i]} |: obj[i]|
|00000f90| 3b 0a 09 09 09 74 68 69 | 73 2e 64 61 74 61 50 72 |;....thi|s.dataPr|
|00000fa0| 6f 76 69 64 65 72 2e 61 | 64 64 49 74 65 6d 28 76 |ovider.a|ddItem(v|
|00000fb0| 61 6c 75 65 29 3b 0a 09 | 09 7d 0a 09 7d 20 65 6c |alue);..|.}..} el|
|00000fc0| 73 65 20 7b 0a 09 09 74 | 68 69 73 2e 64 61 74 61 |se {...t|his.data|
|00000fd0| 50 72 6f 76 69 64 65 72 | 20 3d 20 6f 62 6a 3b 0a |Provider| = obj;.|
|00000fe0| 09 7d 0a 09 74 68 69 73 | 2e 64 61 74 61 50 72 6f |.}..this|.dataPro|
|00000ff0| 76 69 64 65 72 2e 61 64 | 64 56 69 65 77 28 74 68 |vider.ad|dView(th|
|00001000| 69 73 29 3b 0a 7d 0a 0a | 46 53 65 6c 65 63 74 61 |is);.}..|FSelecta|
|00001010| 62 6c 65 4c 69 73 74 43 | 6c 61 73 73 2e 70 72 6f |bleListC|lass.pro|
|00001020| 74 6f 74 79 70 65 2e 73 | 65 74 49 74 65 6d 53 79 |totype.s|etItemSy|
|00001030| 6d 62 6f 6c 20 3d 20 66 | 75 6e 63 74 69 6f 6e 28 |mbol = f|unction(|
|00001040| 6c 69 6e 6b 49 44 29 0a | 7b 0a 09 74 68 69 73 2e |linkID).|{..this.|
|00001050| 74 6d 70 50 6f 73 20 3d | 20 74 68 69 73 2e 67 65 |tmpPos =| this.ge|
|00001060| 74 53 63 72 6f 6c 6c 50 | 6f 73 69 74 69 6f 6e 28 |tScrollP|osition(|
|00001070| 29 3b 0a 09 74 68 69 73 | 2e 69 74 65 6d 53 79 6d |);..this|.itemSym|
|00001080| 62 6f 6c 20 3d 20 6c 69 | 6e 6b 49 44 3b 0a 09 74 |bol = li|nkID;..t|
|00001090| 68 69 73 2e 69 6e 76 61 | 6c 69 64 61 74 65 28 22 |his.inva|lidate("|
|000010a0| 73 65 74 53 69 7a 65 22 | 29 3b 0a 09 74 68 69 73 |setSize"|);..this|
|000010b0| 2e 73 65 74 53 63 72 6f | 6c 6c 50 6f 73 69 74 69 |.setScro|llPositi|
|000010c0| 6f 6e 28 74 68 69 73 2e | 74 6d 70 50 6f 73 29 3b |on(this.|tmpPos);|
|000010d0| 0a 7d 0a 0a 46 53 65 6c | 65 63 74 61 62 6c 65 4c |.}..FSel|ectableL|
|000010e0| 69 73 74 43 6c 61 73 73 | 2e 70 72 6f 74 6f 74 79 |istClass|.prototy|
|000010f0| 70 65 2e 73 65 74 45 6e | 61 62 6c 65 64 20 3d 20 |pe.setEn|abled = |
|00001100| 66 75 6e 63 74 69 6f 6e | 28 65 6e 61 62 6c 65 64 |function|(enabled|
|00001110| 46 6c 61 67 29 20 0a 7b | 0a 2f 2f 20 74 68 69 73 |Flag) .{|.// this|
|00001120| 20 65 6e 73 75 72 65 73 | 20 74 68 65 72 65 20 69 | ensures| there i|
|00001130| 73 20 73 6f 6d 65 74 68 | 69 6e 67 20 64 69 73 70 |s someth|ing disp|
|00001140| 6c 61 79 65 64 20 62 65 | 66 6f 72 65 20 64 69 73 |layed be|fore dis|
|00001150| 61 62 6c 69 6e 67 0a 09 | 74 68 69 73 2e 63 6c 65 |abling..|this.cle|
|00001160| 61 6e 55 49 28 29 3b 0a | 09 73 75 70 65 72 2e 73 |anUI();.|.super.s|
|00001170| 65 74 45 6e 61 62 6c 65 | 64 28 65 6e 61 62 6c 65 |etEnable|d(enable|
|00001180| 64 46 6c 61 67 29 3b 0a | 09 74 68 69 73 2e 65 6e |dFlag);.|.this.en|
|00001190| 61 62 6c 65 20 3d 20 65 | 6e 61 62 6c 65 64 46 6c |able = e|nabledFl|
|000011a0| 61 67 3b 0a 09 74 68 69 | 73 2e 62 6f 75 6e 64 69 |ag;..thi|s.boundi|
|000011b0| 6e 67 42 6f 78 5f 6d 63 | 2e 67 6f 74 6f 41 6e 64 |ngBox_mc|.gotoAnd|
|000011c0| 53 74 6f 70 28 20 28 74 | 68 69 73 2e 65 6e 61 62 |Stop( (t|his.enab|
|000011d0| 6c 65 29 20 3f 20 22 65 | 6e 61 62 6c 65 64 22 20 |le) ? "e|nabled" |
|000011e0| 3a 20 22 64 69 73 61 62 | 6c 65 64 22 20 29 3b 0a |: "disab|led" );.|
|000011f0| 09 76 61 72 20 6c 69 6d | 69 74 20 3d 20 4d 61 74 |.var lim|it = Mat|
|00001200| 68 2e 6d 69 6e 28 74 68 | 69 73 2e 6e 75 6d 44 69 |h.min(th|is.numDi|
|00001210| 73 70 6c 61 79 65 64 2c | 20 74 68 69 73 2e 67 65 |splayed,| this.ge|
|00001220| 74 4c 65 6e 67 74 68 28 | 29 29 3b 0a 09 66 6f 72 |tLength(|));..for|
|00001230| 20 28 76 61 72 20 69 3d | 30 3b 20 69 3c 6c 69 6d | (var i=|0; i<lim|
|00001240| 69 74 3b 20 69 2b 2b 29 | 20 7b 0a 09 09 74 68 69 |it; i++)| {...thi|
|00001250| 73 2e 63 6f 6e 74 61 69 | 6e 65 72 5f 6d 63 5b 22 |s.contai|ner_mc["|
|00001260| 66 4c 69 73 74 49 74 65 | 6d 22 20 2b 20 69 20 2b |fListIte|m" + i +|
|00001270| 20 22 5f 6d 63 22 5d 2e | 73 65 74 45 6e 61 62 6c | "_mc"].|setEnabl|
|00001280| 65 64 28 74 68 69 73 2e | 65 6e 61 62 6c 65 29 3b |ed(this.|enable);|
|00001290| 0a 09 7d 0a 09 69 66 20 | 28 74 68 69 73 2e 65 6e |..}..if |(this.en|
|000012a0| 61 62 6c 65 29 20 7b 0a | 09 09 74 68 69 73 2e 69 |able) {.|..this.i|
|000012b0| 6e 76 61 6c 69 64 61 74 | 65 28 22 75 70 64 61 74 |nvalidat|e("updat|
|000012c0| 65 43 6f 6e 74 72 6f 6c | 22 29 3b 0a 09 7d 0a 7d |eControl|");..}.}|
|000012d0| 0a 0a 2f 2f 75 70 64 61 | 74 65 20 61 6c 6c 20 74 |..//upda|te all t|
|000012e0| 68 65 20 69 74 65 6d 73 | 20 62 61 73 65 64 20 6f |he items| based o|
|000012f0| 6e 20 70 6f 73 69 74 69 | 6f 6e 0a 46 53 65 6c 65 |n positi|on.FSele|
|00001300| 63 74 61 62 6c 65 4c 69 | 73 74 43 6c 61 73 73 2e |ctableLi|stClass.|
|00001310| 70 72 6f 74 6f 74 79 70 | 65 2e 75 70 64 61 74 65 |prototyp|e.update|
|00001320| 43 6f 6e 74 72 6f 6c 20 | 3d 20 66 75 6e 63 74 69 |Control |= functi|
|00001330| 6f 6e 28 29 20 0a 7b 0a | 09 66 6f 72 20 28 76 61 |on() .{.|.for (va|
|00001340| 72 20 69 3d 30 3b 20 69 | 3c 74 68 69 73 2e 6e 75 |r i=0; i|<this.nu|
|00001350| 6d 44 69 73 70 6c 61 79 | 65 64 3b 20 69 2b 2b 29 |mDisplay|ed; i++)|
|00001360| 20 7b 0a 09 09 2f 2f 64 | 72 61 77 49 74 65 6d 28 | {...//d|rawItem(|
|00001370| 29 20 49 4d 50 4c 45 4d | 45 4e 54 45 44 20 49 4e |) IMPLEM|ENTED IN|
|00001380| 20 46 53 65 6c 65 63 74 | 61 62 6c 65 49 65 6d 43 | FSelect|ableIemC|
|00001390| 6c 61 73 73 0a 09 09 74 | 68 69 73 2e 63 6f 6e 74 |lass...t|his.cont|
|000013a0| 61 69 6e 65 72 5f 6d 63 | 5b 22 66 4c 69 73 74 49 |ainer_mc|["fListI|
|000013b0| 74 65 6d 22 20 2b 20 69 | 20 2b 20 22 5f 6d 63 22 |tem" + i| + "_mc"|
|000013c0| 5d 2e 64 72 61 77 49 74 | 65 6d 28 74 68 69 73 2e |].drawIt|em(this.|
|000013d0| 67 65 74 49 74 65 6d 41 | 74 28 74 68 69 73 2e 74 |getItemA|t(this.t|
|000013e0| 6f 70 44 69 73 70 6c 61 | 79 65 64 20 2b 20 69 29 |opDispla|yed + i)|
|000013f0| 2c 20 74 68 69 73 2e 69 | 73 53 65 6c 65 63 74 65 |, this.i|sSelecte|
|00001400| 64 28 74 68 69 73 2e 74 | 6f 70 44 69 73 70 6c 61 |d(this.t|opDispla|
|00001410| 79 65 64 2b 69 29 29 3b | 0a 09 7d 0a 7d 0a 0a 46 |yed+i));|..}.}..F|
|00001420| 53 65 6c 65 63 74 61 62 | 6c 65 4c 69 73 74 43 6c |Selectab|leListCl|
|00001430| 61 73 73 2e 70 72 6f 74 | 6f 74 79 70 65 2e 73 65 |ass.prot|otype.se|
|00001440| 74 53 69 7a 65 20 3d 20 | 66 75 6e 63 74 69 6f 6e |tSize = |function|
|00001450| 28 77 2c 20 68 29 20 0a | 7b 0a 09 73 75 70 65 72 |(w, h) .|{..super|
|00001460| 2e 73 65 74 53 69 7a 65 | 28 77 2c 68 29 3b 0a 09 |.setSize|(w,h);..|
|00001470| 74 68 69 73 2e 62 6f 75 | 6e 64 69 6e 67 42 6f 78 |this.bou|ndingBox|
|00001480| 5f 6d 63 2e 5f 78 73 63 | 61 6c 65 20 3d 20 74 68 |_mc._xsc|ale = th|
|00001490| 69 73 2e 62 6f 75 6e 64 | 69 6e 67 42 6f 78 5f 6d |is.bound|ingBox_m|
|000014a0| 63 2e 5f 79 73 63 61 6c | 65 20 3d 20 31 30 30 3b |c._yscal|e = 100;|
|000014b0| 0a 09 74 68 69 73 2e 62 | 6f 75 6e 64 69 6e 67 42 |..this.b|oundingB|
|000014c0| 6f 78 5f 6d 63 2e 5f 78 | 73 63 61 6c 65 20 3d 20 |ox_mc._x|scale = |
|000014d0| 74 68 69 73 2e 77 69 64 | 74 68 20 2a 20 31 30 30 |this.wid|th * 100|
|000014e0| 20 2f 20 74 68 69 73 2e | 62 6f 75 6e 64 69 6e 67 | / this.|bounding|
|000014f0| 42 6f 78 5f 6d 63 2e 5f | 77 69 64 74 68 3b 0a 09 |Box_mc._|width;..|
|00001500| 74 68 69 73 2e 62 6f 75 | 6e 64 69 6e 67 42 6f 78 |this.bou|ndingBox|
|00001510| 5f 6d 63 2e 5f 79 73 63 | 61 6c 65 20 3d 20 74 68 |_mc._ysc|ale = th|
|00001520| 69 73 2e 68 65 69 67 68 | 74 20 2a 20 31 30 30 20 |is.heigh|t * 100 |
|00001530| 2f 20 74 68 69 73 2e 62 | 6f 75 6e 64 69 6e 67 42 |/ this.b|oundingB|
|00001540| 6f 78 5f 6d 63 2e 5f 68 | 65 69 67 68 74 3b 0a 09 |ox_mc._h|eight;..|
|00001550| 66 6f 72 20 28 76 61 72 | 20 69 3d 30 3b 20 69 3c |for (var| i=0; i<|
|00001560| 74 68 69 73 2e 6e 75 6d | 44 69 73 70 6c 61 79 65 |this.num|Displaye|
|00001570| 64 3b 20 69 2b 2b 29 20 | 7b 0a 09 09 74 68 69 73 |d; i++) |{...this|
|00001580| 2e 63 6f 6e 74 61 69 6e | 65 72 5f 6d 63 2e 61 74 |.contain|er_mc.at|
|00001590| 74 61 63 68 4d 6f 76 69 | 65 28 74 68 69 73 2e 69 |tachMovi|e(this.i|
|000015a0| 74 65 6d 53 79 6d 62 6f | 6c 2c 20 22 66 4c 69 73 |temSymbo|l, "fLis|
|000015b0| 74 49 74 65 6d 22 20 2b | 20 69 20 2b 20 22 5f 6d |tItem" +| i + "_m|
|000015c0| 63 22 2c 20 31 30 20 2b | 20 69 2c 20 7b 63 6f 6e |c", 10 +| i, {con|
|000015d0| 74 72 6f 6c 6c 65 72 3a | 74 68 69 73 2c 69 74 65 |troller:|this,ite|
|000015e0| 6d 4e 75 6d 3a 69 7d 29 | 3b 0a 09 09 76 61 72 20 |mNum:i})|;...var |
|000015f0| 69 74 65 6d 5f 6d 63 20 | 3d 20 74 68 69 73 2e 63 |item_mc |= this.c|
|00001600| 6f 6e 74 61 69 6e 65 72 | 5f 6d 63 5b 22 66 4c 69 |ontainer|_mc["fLi|
|00001610| 73 74 49 74 65 6d 22 20 | 2b 20 69 20 2b 20 22 5f |stItem" |+ i + "_|
|00001620| 6d 63 22 5d 3b 0a 09 09 | 76 61 72 20 6f 66 66 73 |mc"];...|var offs|
|00001630| 65 74 20 3d 20 28 74 68 | 69 73 2e 73 63 72 6f 6c |et = (th|is.scrol|
|00001640| 6c 4f 66 66 73 65 74 3d | 3d 75 6e 64 65 66 69 6e |lOffset=|=undefin|
|00001650| 65 64 29 20 3f 20 30 20 | 3a 20 74 68 69 73 2e 73 |ed) ? 0 |: this.s|
|00001660| 63 72 6f 6c 6c 4f 66 66 | 73 65 74 3b 0a 09 09 69 |crollOff|set;...i|
|00001670| 74 65 6d 5f 6d 63 2e 73 | 65 74 53 69 7a 65 28 74 |tem_mc.s|etSize(t|
|00001680| 68 69 73 2e 77 69 64 74 | 68 2d 6f 66 66 73 65 74 |his.widt|h-offset|
|00001690| 2c 20 74 68 69 73 2e 69 | 74 6d 48 67 74 29 3b 0a |, this.i|tmHgt);.|
|000016a0| 09 09 69 74 65 6d 5f 6d | 63 2e 5f 79 20 3d 20 28 |..item_m|c._y = (|
|000016b0| 74 68 69 73 2e 69 74 6d | 48 67 74 2d 32 29 2a 69 |this.itm|Hgt-2)*i|
|000016c0| 3b 0a 09 7d 0a 09 74 68 | 69 73 2e 75 70 64 61 74 |;..}..th|is.updat|
|000016d0| 65 43 6f 6e 74 72 6f 6c | 28 29 3b 0a 7d 0a 0a 0a |eControl|();.}...|
|000016e0| 0a 2f 2f 20 3a 3a 3a 20 | 50 52 49 56 41 54 45 20 |.// ::: |PRIVATE |
|000016f0| 4d 45 54 48 4f 44 53 0a | 0a 46 53 65 6c 65 63 74 |METHODS.|.FSelect|
|00001700| 61 62 6c 65 4c 69 73 74 | 43 6c 61 73 73 2e 70 72 |ableList|Class.pr|
|00001710| 6f 74 6f 74 79 70 65 2e | 6d 6f 64 65 6c 43 68 61 |ototype.|modelCha|
|00001720| 6e 67 65 64 20 3d 20 66 | 75 6e 63 74 69 6f 6e 28 |nged = f|unction(|
|00001730| 65 76 65 6e 74 4f 62 6a | 29 0a 7b 0a 09 76 61 72 |eventObj|).{..var|
|00001740| 20 66 69 72 73 74 52 6f | 77 20 3d 20 65 76 65 6e | firstRo|w = even|
|00001750| 74 4f 62 6a 2e 66 69 72 | 73 74 52 6f 77 3b 0a 09 |tObj.fir|stRow;..|
|00001760| 76 61 72 20 6c 61 73 74 | 52 6f 77 20 3d 20 65 76 |var last|Row = ev|
|00001770| 65 6e 74 4f 62 6a 2e 6c | 61 73 74 52 6f 77 3b 0a |entObj.l|astRow;.|
|00001780| 09 0a 09 76 61 72 20 65 | 76 65 6e 74 20 3d 20 65 |...var e|vent = e|
|00001790| 76 65 6e 74 4f 62 6a 2e | 65 76 65 6e 74 3b 0a 0a |ventObj.|event;..|
|000017a0| 09 69 66 20 28 65 76 65 | 6e 74 3d 3d 22 61 64 64 |.if (eve|nt=="add|
|000017b0| 52 6f 77 73 22 29 20 7b | 0a 09 09 66 6f 72 20 28 |Rows") {|...for (|
|000017c0| 76 61 72 20 69 20 69 6e | 20 74 68 69 73 2e 73 65 |var i in| this.se|
|000017d0| 6c 65 63 74 65 64 29 20 | 7b 0a 09 09 09 69 66 20 |lected) |{....if |
|000017e0| 28 74 68 69 73 2e 73 65 | 6c 65 63 74 65 64 5b 69 |(this.se|lected[i|
|000017f0| 5d 2e 73 49 6e 64 65 78 | 21 3d 75 6e 64 65 66 69 |].sIndex|!=undefi|
|00001800| 6e 65 64 20 26 26 20 74 | 68 69 73 2e 73 65 6c 65 |ned && t|his.sele|
|00001810| 63 74 65 64 5b 69 5d 2e | 73 49 6e 64 65 78 3e 3d |cted[i].|sIndex>=|
|00001820| 66 69 72 73 74 52 6f 77 | 29 20 7b 0a 09 09 09 09 |firstRow|) {.....|
|00001830| 74 68 69 73 2e 73 65 6c | 65 63 74 65 64 5b 69 5d |this.sel|ected[i]|
|00001840| 2e 73 49 6e 64 65 78 2b | 3d 6c 61 73 74 52 6f 77 |.sIndex+|=lastRow|
|00001850| 2d 66 69 72 73 74 52 6f | 77 2b 31 3b 0a 09 09 09 |-firstRo|w+1;....|
|00001860| 09 74 68 69 73 2e 73 65 | 74 53 65 6c 65 63 74 65 |.this.se|tSelecte|
|00001870| 64 49 6e 64 65 78 28 74 | 68 69 73 2e 73 65 6c 65 |dIndex(t|his.sele|
|00001880| 63 74 65 64 5b 69 5d 2e | 73 49 6e 64 65 78 2c 20 |cted[i].|sIndex, |
|00001890| 66 61 6c 73 65 29 3b 0a | 09 09 09 7d 0a 09 09 7d |false);.|...}...}|
|000018a0| 0a 09 7d 20 65 6c 73 65 | 20 69 66 20 28 65 76 65 |..} else| if (eve|
|000018b0| 6e 74 3d 3d 22 64 65 6c | 65 74 65 52 6f 77 73 22 |nt=="del|eteRows"|
|000018c0| 29 20 7b 0a 09 09 69 66 | 20 28 66 69 72 73 74 52 |) {...if| (firstR|
|000018d0| 6f 77 3d 3d 6c 61 73 74 | 52 6f 77 29 20 7b 20 0a |ow==last|Row) { .|
|000018e0| 09 09 09 76 61 72 20 69 | 6e 64 65 78 20 3d 20 66 |...var i|ndex = f|
|000018f0| 69 72 73 74 52 6f 77 3b | 0a 09 09 09 69 66 20 28 |irstRow;|....if (|
|00001900| 74 68 69 73 2e 73 65 6c | 65 63 74 48 6f 6c 64 65 |this.sel|ectHolde|
|00001910| 72 3d 3d 69 6e 64 65 78 | 29 20 7b 0a 09 09 09 09 |r==index|) {.....|
|00001920| 74 68 69 73 2e 73 65 6c | 65 63 74 69 6f 6e 44 65 |this.sel|ectionDe|
|00001930| 6c 65 74 65 64 20 3d 20 | 74 72 75 65 3b 0a 09 09 |leted = |true;...|
|00001940| 09 7d 0a 09 09 2f 2f 20 | 6f 6e 6c 79 20 6f 6e 65 |.}...// |only one|
|00001950| 20 77 61 73 20 64 65 6c | 65 74 65 64 0a 09 09 09 | was del|eted....|
|00001960| 2f 2f 20 69 66 20 74 68 | 65 20 76 69 65 77 20 69 |// if th|e view i|
|00001970| 73 20 73 63 72 6f 6c 6c | 65 64 20 62 75 74 20 68 |s scroll|ed but h|
|00001980| 61 73 6e 27 74 20 65 6e | 6f 75 67 68 20 74 6f 20 |asn't en|ough to |
|00001990| 64 69 73 70 6c 61 79 2c | 20 73 63 72 6f 6c 6c 20 |display,| scroll |
|000019a0| 62 61 63 6b 0a 09 09 09 | 69 66 20 28 74 68 69 73 |back....|if (this|
|000019b0| 2e 74 6f 70 44 69 73 70 | 6c 61 79 65 64 2b 74 68 |.topDisp|layed+th|
|000019c0| 69 73 2e 6e 75 6d 44 69 | 73 70 6c 61 79 65 64 3e |is.numDi|splayed>|
|000019d0| 3d 74 68 69 73 2e 67 65 | 74 4c 65 6e 67 74 68 28 |=this.ge|tLength(|
|000019e0| 29 20 26 26 20 74 68 69 | 73 2e 74 6f 70 44 69 73 |) && thi|s.topDis|
|000019f0| 70 6c 61 79 65 64 3e 30 | 29 20 7b 0a 09 09 09 09 |played>0|) {.....|
|00001a00| 74 68 69 73 2e 74 6f 70 | 44 69 73 70 6c 61 79 65 |this.top|Displaye|
|00001a10| 64 2d 2d 3b 0a 09 09 09 | 09 69 66 20 28 74 68 69 |d--;....|.if (thi|
|00001a20| 73 2e 73 65 6c 65 63 74 | 69 6f 6e 44 65 6c 65 74 |s.select|ionDelet|
|00001a30| 65 64 20 26 26 20 69 6e | 64 65 78 2d 31 3e 3d 30 |ed && in|dex-1>=0|
|00001a40| 29 20 7b 0a 09 09 09 09 | 09 74 68 69 73 2e 73 65 |) {.....|.this.se|
|00001a50| 74 53 65 6c 65 63 74 65 | 64 49 6e 64 65 78 28 69 |tSelecte|dIndex(i|
|00001a60| 6e 64 65 78 2d 31 2c 20 | 66 61 6c 73 65 29 3b 0a |ndex-1, |false);.|
|00001a70| 09 09 09 09 7d 0a 09 09 | 09 7d 20 65 6c 73 65 20 |....}...|.} else |
|00001a80| 69 66 20 28 74 68 69 73 | 2e 73 65 6c 65 63 74 69 |if (this|.selecti|
|00001a90| 6f 6e 44 65 6c 65 74 65 | 64 29 20 7b 0a 09 09 09 |onDelete|d) {....|
|00001aa0| 09 76 61 72 20 6c 65 6e | 20 3d 20 74 68 69 73 2e |.var len| = this.|
|00001ab0| 67 65 74 4c 65 6e 67 74 | 68 28 29 3b 0a 09 09 09 |getLengt|h();....|
|00001ac0| 09 69 66 20 28 20 28 20 | 69 6e 64 65 78 3d 3d 6c |.if ( ( |index==l|
|00001ad0| 65 6e 2d 31 20 26 26 20 | 6c 65 6e 3e 31 20 20 7c |en-1 && |len>1 ||
|00001ae0| 7c 20 69 6e 64 65 78 3e | 6c 65 6e 2f 32 29 29 20 || index>|len/2)) |
|00001af0| 7b 0a 09 09 09 09 09 74 | 68 69 73 2e 73 65 74 53 |{......t|his.setS|
|00001b00| 65 6c 65 63 74 65 64 49 | 6e 64 65 78 28 69 6e 64 |electedI|ndex(ind|
|00001b10| 65 78 2d 31 2c 20 66 61 | 6c 73 65 29 3b 0a 09 09 |ex-1, fa|lse);...|
|00001b20| 09 09 7d 20 65 6c 73 65 | 20 7b 0a 09 09 09 09 09 |..} else| {......|
|00001b30| 74 68 69 73 2e 73 65 74 | 53 65 6c 65 63 74 65 64 |this.set|Selected|
|00001b40| 49 6e 64 65 78 28 69 6e | 64 65 78 2c 20 66 61 6c |Index(in|dex, fal|
|00001b50| 73 65 29 3b 0a 09 09 09 | 09 7d 0a 09 09 09 7d 0a |se);....|.}....}.|
|00001b60| 09 09 09 66 6f 72 20 28 | 76 61 72 20 69 20 69 6e |...for (|var i in|
|00001b70| 20 74 68 69 73 2e 73 65 | 6c 65 63 74 65 64 29 20 | this.se|lected) |
|00001b80| 7b 0a 09 09 09 09 69 66 | 20 28 74 68 69 73 2e 73 |{.....if| (this.s|
|00001b90| 65 6c 65 63 74 65 64 5b | 69 5d 2e 73 49 6e 64 65 |elected[|i].sInde|
|00001ba0| 78 3e 66 69 72 73 74 52 | 6f 77 29 20 7b 0a 09 09 |x>firstR|ow) {...|
|00001bb0| 09 09 09 74 68 69 73 2e | 73 65 6c 65 63 74 65 64 |...this.|selected|
|00001bc0| 5b 69 5d 2e 73 49 6e 64 | 65 78 2d 2d 3b 0a 09 09 |[i].sInd|ex--;...|
|00001bd0| 09 09 7d 0a 09 09 09 7d | 0a 09 09 09 09 0a 09 09 |..}....}|........|
|00001be0| 7d 20 65 6c 73 65 20 7b | 0a 09 09 09 2f 2f 20 66 |} else {|....// f|
|00001bf0| 6f 72 20 6e 6f 77 2c 20 | 61 73 73 75 6d 65 20 61 |or now, |assume a|
|00001c00| 6c 6c 20 72 6f 77 73 20 | 77 65 72 65 20 64 65 6c |ll rows |were del|
|00001c10| 65 74 65 64 0a 09 09 09 | 74 68 69 73 2e 63 6c 65 |eted....|this.cle|
|00001c20| 61 72 53 65 6c 65 63 74 | 65 64 28 29 3b 0a 09 09 |arSelect|ed();...|
|00001c30| 09 74 68 69 73 2e 74 6f | 70 44 69 73 70 6c 61 79 |.this.to|pDisplay|
|00001c40| 65 64 20 3d 20 30 3b 0a | 09 09 7d 0a 09 7d 20 65 |ed = 0;.|..}..} e|
|00001c50| 6c 73 65 20 69 66 20 28 | 65 76 65 6e 74 3d 3d 22 |lse if (|event=="|
|00001c60| 73 6f 72 74 22 29 20 7b | 0a 09 09 2f 2f 20 72 65 |sort") {|...// re|
|00001c70| 68 61 73 68 20 73 65 6c | 65 63 74 69 6f 6e 73 0a |hash sel|ections.|
|00001c80| 09 09 76 61 72 20 6c 65 | 6e 20 3d 20 74 68 69 73 |..var le|n = this|
|00001c90| 2e 67 65 74 4c 65 6e 67 | 74 68 28 29 3b 0a 09 09 |.getLeng|th();...|
|00001ca0| 66 6f 72 20 28 76 61 72 | 20 69 3d 30 3b 20 69 3c |for (var| i=0; i<|
|00001cb0| 6c 65 6e 3b 20 69 2b 2b | 29 20 7b 0a 09 09 09 69 |len; i++|) {....i|
|00001cc0| 66 20 28 74 68 69 73 2e | 69 73 53 65 6c 65 63 74 |f (this.|isSelect|
|00001cd0| 65 64 28 69 29 29 20 7b | 0a 09 09 09 09 76 61 72 |ed(i)) {|.....var|
|00001ce0| 20 69 64 20 3d 20 74 68 | 69 73 2e 64 61 74 61 50 | id = th|is.dataP|
|00001cf0| 72 6f 76 69 64 65 72 2e | 67 65 74 49 74 65 6d 49 |rovider.|getItemI|
|00001d00| 44 28 69 29 3b 0a 09 09 | 09 09 69 66 20 28 69 64 |D(i);...|..if (id|
|00001d10| 20 3d 3d 20 74 68 69 73 | 2e 6c 61 73 74 53 65 6c | == this|.lastSel|
|00001d20| 49 44 29 20 7b 0a 09 09 | 09 09 09 74 68 69 73 2e |ID) {...|...this.|
|00001d30| 6c 61 73 74 53 65 6c 65 | 63 74 65 64 20 3d 20 69 |lastSele|cted = i|
|00001d40| 3b 0a 09 09 09 09 7d 0a | 09 09 09 09 74 68 69 73 |;.....}.|....this|
|00001d50| 2e 73 65 6c 65 63 74 65 | 64 5b 53 74 72 69 6e 67 |.selecte|d[String|
|00001d60| 28 69 64 29 5d 2e 73 49 | 6e 64 65 78 20 3d 20 69 |(id)].sI|ndex = i|
|00001d70| 3b 0a 09 09 09 7d 0a 09 | 09 7d 0a 09 7d 0a 09 74 |;....}..|.}..}..t|
|00001d80| 68 69 73 2e 69 6e 76 61 | 6c 69 64 61 74 65 28 22 |his.inva|lidate("|
|00001d90| 75 70 64 61 74 65 43 6f | 6e 74 72 6f 6c 22 29 3b |updateCo|ntrol");|
|00001da0| 0a 7d 0a 0a 46 53 65 6c | 65 63 74 61 62 6c 65 4c |.}..FSel|ectableL|
|00001db0| 69 73 74 43 6c 61 73 73 | 2e 70 72 6f 74 6f 74 79 |istClass|.prototy|
|00001dc0| 70 65 2e 6d 65 61 73 75 | 72 65 49 74 6d 48 67 74 |pe.measu|reItmHgt|
|00001dd0| 20 3d 20 66 75 6e 63 74 | 69 6f 6e 28 29 0a 7b 0a | = funct|ion().{.|
|00001de0| 09 74 68 69 73 2e 61 74 | 74 61 63 68 4d 6f 76 69 |.this.at|tachMovi|
|00001df0| 65 28 74 68 69 73 2e 69 | 74 65 6d 53 79 6d 62 6f |e(this.i|temSymbo|
|00001e00| 6c 2c 20 22 74 6d 70 49 | 74 65 6d 5f 6d 63 22 2c |l, "tmpI|tem_mc",|
|00001e10| 20 30 2c 20 7b 63 6f 6e | 74 72 6f 6c 6c 65 72 3a | 0, {con|troller:|
|00001e20| 74 68 69 73 7d 29 3b 0a | 09 74 68 69 73 2e 74 6d |this});.|.this.tm|
|00001e30| 70 49 74 65 6d 5f 6d 63 | 2e 64 72 61 77 49 74 65 |pItem_mc|.drawIte|
|00001e40| 6d 28 20 7b 6c 61 62 65 | 6c 3a 22 53 69 7a 65 72 |m( {labe|l:"Sizer|
|00001e50| 3a 20 50 6a 74 54 6f 70 | 67 22 7d 2c 20 66 61 6c |: PjtTop|g"}, fal|
|00001e60| 73 65 29 3b 0a 09 74 68 | 69 73 2e 69 74 6d 48 67 |se);..th|is.itmHg|
|00001e70| 74 20 3d 20 74 68 69 73 | 2e 74 6d 70 49 74 65 6d |t = this|.tmpItem|
|00001e80| 5f 6d 63 2e 5f 68 65 69 | 67 68 74 3b 0a 09 74 68 |_mc._hei|ght;..th|
|00001e90| 69 73 2e 74 6d 70 49 74 | 65 6d 5f 6d 63 2e 72 65 |is.tmpIt|em_mc.re|
|00001ea0| 6d 6f 76 65 4d 6f 76 69 | 65 43 6c 69 70 28 29 3b |moveMovi|eClip();|
|00001eb0| 0a 7d 0a 0a 46 53 65 6c | 65 63 74 61 62 6c 65 4c |.}..FSel|ectableL|
|00001ec0| 69 73 74 43 6c 61 73 73 | 2e 70 72 6f 74 6f 74 79 |istClass|.prototy|
|00001ed0| 70 65 2e 73 65 6c 65 63 | 74 49 74 65 6d 20 3d 20 |pe.selec|tItem = |
|00001ee0| 66 75 6e 63 74 69 6f 6e | 28 69 6e 64 65 78 2c 20 |function|(index, |
|00001ef0| 73 65 6c 65 63 74 65 64 | 46 6c 61 67 29 20 0a 7b |selected|Flag) .{|
|00001f00| 0a 09 69 66 20 28 73 65 | 6c 65 63 74 65 64 46 6c |..if (se|lectedFl|
|00001f10| 61 67 20 26 26 20 21 74 | 68 69 73 2e 69 73 53 65 |ag && !t|his.isSe|
|00001f20| 6c 65 63 74 65 64 28 69 | 6e 64 65 78 29 29 20 7b |lected(i|ndex)) {|
|00001f30| 0a 09 09 74 68 69 73 2e | 73 65 6c 65 63 74 65 64 |...this.|selected|
|00001f40| 5b 53 74 72 69 6e 67 28 | 20 74 68 69 73 2e 64 61 |[String(| this.da|
|00001f50| 74 61 50 72 6f 76 69 64 | 65 72 2e 67 65 74 49 74 |taProvid|er.getIt|
|00001f60| 65 6d 49 44 28 69 6e 64 | 65 78 29 20 29 5d 20 3d |emID(ind|ex) )] =|
|00001f70| 20 7b 20 73 49 6e 64 65 | 78 20 3a 20 69 6e 64 65 | { sInde|x : inde|
|00001f80| 78 20 7d 3b 0a 09 7d 0a | 09 65 6c 73 65 20 69 66 |x };..}.|.else if|
|00001f90| 20 28 21 73 65 6c 65 63 | 74 65 64 46 6c 61 67 29 | (!selec|tedFlag)|
|00001fa0| 20 7b 0a 09 09 64 65 6c | 65 74 65 20 74 68 69 73 | {...del|ete this|
|00001fb0| 2e 73 65 6c 65 63 74 65 | 64 5b 53 74 72 69 6e 67 |.selecte|d[String|
|00001fc0| 28 20 74 68 69 73 2e 64 | 61 74 61 50 72 6f 76 69 |( this.d|ataProvi|
|00001fd0| 64 65 72 2e 67 65 74 49 | 74 65 6d 49 44 28 69 6e |der.getI|temID(in|
|00001fe0| 64 65 78 29 20 29 5d 3b | 0a 09 7d 0a 7d 0a 0a 46 |dex) )];|..}.}..F|
|00001ff0| 53 65 6c 65 63 74 61 62 | 6c 65 4c 69 73 74 43 6c |Selectab|leListCl|
|00002000| 61 73 73 2e 70 72 6f 74 | 6f 74 79 70 65 2e 69 73 |ass.prot|otype.is|
|00002010| 53 65 6c 65 63 74 65 64 | 20 3d 20 66 75 6e 63 74 |Selected| = funct|
|00002020| 69 6f 6e 28 69 6e 64 65 | 78 29 20 0a 7b 0a 09 72 |ion(inde|x) .{..r|
|00002030| 65 74 75 72 6e 20 28 74 | 68 69 73 2e 73 65 6c 65 |eturn (t|his.sele|
|00002040| 63 74 65 64 5b 53 74 72 | 69 6e 67 28 20 74 68 69 |cted[Str|ing( thi|
|00002050| 73 2e 64 61 74 61 50 72 | 6f 76 69 64 65 72 2e 67 |s.dataPr|ovider.g|
|00002060| 65 74 49 74 65 6d 49 44 | 28 69 6e 64 65 78 29 20 |etItemID|(index) |
|00002070| 29 5d 2e 73 49 6e 64 65 | 78 21 3d 75 6e 64 65 66 |)].sInde|x!=undef|
|00002080| 69 6e 65 64 29 3b 0a 7d | 0a 0a 46 53 65 6c 65 63 |ined);.}|..FSelec|
|00002090| 74 61 62 6c 65 4c 69 73 | 74 43 6c 61 73 73 2e 70 |tableLis|tClass.p|
|000020a0| 72 6f 74 6f 74 79 70 65 | 2e 63 6c 65 61 72 53 65 |rototype|.clearSe|
|000020b0| 6c 65 63 74 65 64 20 3d | 20 66 75 6e 63 74 69 6f |lected =| functio|
|000020c0| 6e 28 29 20 0a 7b 0a 09 | 66 6f 72 20 28 76 61 72 |n() .{..|for (var|
|000020d0| 20 75 6e 69 71 75 65 49 | 44 20 69 6e 20 74 68 69 | uniqueI|D in thi|
|000020e0| 73 2e 73 65 6c 65 63 74 | 65 64 29 20 7b 0a 09 09 |s.select|ed) {...|
|000020f0| 76 61 72 20 69 6e 64 65 | 78 20 3d 20 74 68 69 73 |var inde|x = this|
|00002100| 2e 73 65 6c 65 63 74 65 | 64 5b 75 6e 69 71 75 65 |.selecte|d[unique|
|00002110| 49 44 5d 2e 73 49 6e 64 | 65 78 3b 0a 09 09 69 66 |ID].sInd|ex;...if|
|00002120| 20 28 69 6e 64 65 78 21 | 3d 75 6e 64 65 66 69 6e | (index!|=undefin|
|00002130| 65 64 20 26 26 20 74 68 | 69 73 2e 74 6f 70 44 69 |ed && th|is.topDi|
|00002140| 73 70 6c 61 79 65 64 3c | 3d 69 6e 64 65 78 20 26 |splayed<|=index &|
|00002150| 26 20 69 6e 64 65 78 3c | 74 68 69 73 2e 74 6f 70 |& index<|this.top|
|00002160| 44 69 73 70 6c 61 79 65 | 64 2b 74 68 69 73 2e 6e |Displaye|d+this.n|
|00002170| 75 6d 44 69 73 70 6c 61 | 79 65 64 29 20 7b 0a 09 |umDispla|yed) {..|
|00002180| 09 09 74 68 69 73 2e 63 | 6f 6e 74 61 69 6e 65 72 |..this.c|ontainer|
|00002190| 5f 6d 63 5b 22 66 4c 69 | 73 74 49 74 65 6d 22 2b |_mc["fLi|stItem"+|
|000021a0| 28 69 6e 64 65 78 2d 74 | 68 69 73 2e 74 6f 70 44 |(index-t|his.topD|
|000021b0| 69 73 70 6c 61 79 65 64 | 29 2b 22 5f 6d 63 22 5d |isplayed|)+"_mc"]|
|000021c0| 2e 64 72 61 77 49 74 65 | 6d 28 74 68 69 73 2e 67 |.drawIte|m(this.g|
|000021d0| 65 74 49 74 65 6d 41 74 | 28 69 6e 64 65 78 29 2c |etItemAt|(index),|
|000021e0| 20 66 61 6c 73 65 29 3b | 0a 09 09 7d 0a 09 7d 0a | false);|...}..}.|
|000021f0| 09 64 65 6c 65 74 65 20 | 74 68 69 73 2e 73 65 6c |.delete |this.sel|
|00002200| 65 63 74 65 64 3b 0a 09 | 74 68 69 73 2e 73 65 6c |ected;..|this.sel|
|00002210| 65 63 74 65 64 20 3d 20 | 6e 65 77 20 41 72 72 61 |ected = |new Arra|
|00002220| 79 28 29 3b 0a 7d 0a 0a | 46 53 65 6c 65 63 74 61 |y();.}..|FSelecta|
|00002230| 62 6c 65 4c 69 73 74 43 | 6c 61 73 73 2e 70 72 6f |bleListC|lass.pro|
|00002240| 74 6f 74 79 70 65 2e 73 | 65 6c 65 63 74 69 6f 6e |totype.s|election|
|00002250| 48 61 6e 64 6c 65 72 20 | 3d 20 66 75 6e 63 74 69 |Handler |= functi|
|00002260| 6f 6e 28 69 74 65 6d 4e | 75 6d 29 20 0a 7b 0a 09 |on(itemN|um) .{..|
|00002270| 76 61 72 20 74 6d 70 49 | 6e 64 20 3d 20 74 68 69 |var tmpI|nd = thi|
|00002280| 73 2e 74 6f 70 44 69 73 | 70 6c 61 79 65 64 20 2b |s.topDis|played +|
|00002290| 20 69 74 65 6d 4e 75 6d | 3b 0a 09 69 66 20 28 74 | itemNum|;..if (t|
|000022a0| 68 69 73 2e 67 65 74 49 | 74 65 6d 41 74 28 74 6d |his.getI|temAt(tm|
|000022b0| 70 49 6e 64 3d 3d 75 6e | 64 65 66 69 6e 65 64 29 |pInd==un|defined)|
|000022c0| 29 20 7b 0a 09 09 74 68 | 69 73 2e 63 68 61 6e 67 |) {...th|is.chang|
|000022d0| 65 46 6c 61 67 20 3d 20 | 66 61 6c 73 65 3b 0a 09 |eFlag = |false;..|
|000022e0| 09 72 65 74 75 72 6e 3b | 0a 09 7d 20 65 6c 73 65 |.return;|..} else|
|000022f0| 20 7b 0a 09 09 74 68 69 | 73 2e 63 68 61 6e 67 65 | {...thi|s.change|
|00002300| 46 6c 61 67 20 3d 20 74 | 72 75 65 3b 0a 09 7d 0a |Flag = t|rue;..}.|
|00002310| 09 74 68 69 73 2e 63 6c | 65 61 72 53 65 6c 65 63 |.this.cl|earSelec|
|00002320| 74 65 64 28 29 3b 0a 09 | 74 68 69 73 2e 73 65 6c |ted();..|this.sel|
|00002330| 65 63 74 49 74 65 6d 28 | 74 6d 70 49 6e 64 2c 20 |ectItem(|tmpInd, |
|00002340| 74 72 75 65 29 3b 0a 09 | 74 68 69 73 2e 63 6f 6e |true);..|this.con|
|00002350| 74 61 69 6e 65 72 5f 6d | 63 5b 22 66 4c 69 73 74 |tainer_m|c["fList|
|00002360| 49 74 65 6d 22 20 2b 20 | 69 74 65 6d 4e 75 6d 20 |Item" + |itemNum |
|00002370| 2b 20 22 5f 6d 63 22 5d | 2e 64 72 61 77 49 74 65 |+ "_mc"]|.drawIte|
|00002380| 6d 28 74 68 69 73 2e 67 | 65 74 49 74 65 6d 41 74 |m(this.g|etItemAt|
|00002390| 28 74 6d 70 49 6e 64 29 | 2c 20 74 68 69 73 2e 69 |(tmpInd)|, this.i|
|000023a0| 73 53 65 6c 65 63 74 65 | 64 28 74 6d 70 49 6e 64 |sSelecte|d(tmpInd|
|000023b0| 29 29 3b 0a 7d 0a 20 0a | 46 53 65 6c 65 63 74 61 |));.}. .|FSelecta|
|000023c0| 62 6c 65 4c 69 73 74 43 | 6c 61 73 73 2e 70 72 6f |bleListC|lass.pro|
|000023d0| 74 6f 74 79 70 65 2e 6d | 6f 76 65 53 65 6c 42 79 |totype.m|oveSelBy|
|000023e0| 20 3d 20 66 75 6e 63 74 | 69 6f 6e 28 69 6e 63 72 | = funct|ion(incr|
|000023f0| 29 0a 7b 0a 09 76 61 72 | 20 69 74 6d 4e 75 6d 20 |).{..var| itmNum |
|00002400| 3d 20 74 68 69 73 2e 67 | 65 74 53 65 6c 65 63 74 |= this.g|etSelect|
|00002410| 65 64 49 6e 64 65 78 28 | 29 3b 0a 09 76 61 72 20 |edIndex(|);..var |
|00002420| 6e 65 77 49 74 6d 20 3d | 20 69 74 6d 4e 75 6d 20 |newItm =| itmNum |
|00002430| 2b 20 69 6e 63 72 3b 0a | 09 6e 65 77 49 74 6d 20 |+ incr;.|.newItm |
|00002440| 3d 20 4d 61 74 68 2e 6d | 61 78 28 30 2c 20 6e 65 |= Math.m|ax(0, ne|
|00002450| 77 49 74 6d 29 3b 0a 09 | 6e 65 77 49 74 6d 20 3d |wItm);..|newItm =|
|00002460| 20 4d 61 74 68 2e 6d 69 | 6e 28 74 68 69 73 2e 67 | Math.mi|n(this.g|
|00002470| 65 74 4c 65 6e 67 74 68 | 28 29 2d 31 2c 20 6e 65 |etLength|()-1, ne|
|00002480| 77 49 74 6d 29 3b 0a 09 | 69 66 20 28 6e 65 77 49 |wItm);..|if (newI|
|00002490| 74 6d 3d 3d 69 74 6d 4e | 75 6d 29 20 7b 0a 09 09 |tm==itmN|um) {...|
|000024a0| 72 65 74 75 72 6e 3b 0a | 09 7d 0a 09 69 66 20 28 |return;.|.}..if (|
|000024b0| 69 74 6d 4e 75 6d 3c 74 | 68 69 73 2e 74 6f 70 44 |itmNum<t|his.topD|
|000024c0| 69 73 70 6c 61 79 65 64 | 20 7c 7c 20 69 74 6d 4e |isplayed| || itmN|
|000024d0| 75 6d 3e 3d 74 68 69 73 | 2e 74 6f 70 44 69 73 70 |um>=this|.topDisp|
|000024e0| 6c 61 79 65 64 2b 74 68 | 69 73 2e 6e 75 6d 44 69 |layed+th|is.numDi|
|000024f0| 73 70 6c 61 79 65 64 29 | 20 7b 0a 09 09 74 68 69 |splayed)| {...thi|
|00002500| 73 2e 73 65 74 53 63 72 | 6f 6c 6c 50 6f 73 69 74 |s.setScr|ollPosit|
|00002510| 69 6f 6e 28 69 74 6d 4e | 75 6d 29 3b 09 2f 2f 20 |ion(itmN|um);.// |
|00002520| 56 49 52 54 55 41 4c 20 | 46 75 6e 63 74 69 6f 6e |VIRTUAL |Function|
|00002530| 20 2d 2d 20 45 58 54 45 | 4e 44 20 6d 65 0a 09 7d | -- EXTE|ND me..}|
|00002540| 0a 09 69 66 20 28 6e 65 | 77 49 74 6d 3e 3d 74 68 |..if (ne|wItm>=th|
|00002550| 69 73 2e 74 6f 70 44 69 | 73 70 6c 61 79 65 64 2b |is.topDi|splayed+|
|00002560| 74 68 69 73 2e 6e 75 6d | 44 69 73 70 6c 61 79 65 |this.num|Displaye|
|00002570| 64 20 7c 7c 20 6e 65 77 | 49 74 6d 3c 74 68 69 73 |d || new|Itm<this|
|00002580| 2e 74 6f 70 44 69 73 70 | 6c 61 79 65 64 29 20 7b |.topDisp|layed) {|
|00002590| 0a 09 09 74 68 69 73 2e | 73 65 74 53 63 72 6f 6c |...this.|setScrol|
|000025a0| 6c 50 6f 73 69 74 69 6f | 6e 28 74 68 69 73 2e 74 |lPositio|n(this.t|
|000025b0| 6f 70 44 69 73 70 6c 61 | 79 65 64 2b 69 6e 63 72 |opDispla|yed+incr|
|000025c0| 29 3b 20 20 2f 2f 20 56 | 49 52 54 55 41 4c 20 46 |); // V|IRTUAL F|
|000025d0| 75 6e 63 74 69 6f 6e 20 | 2d 2d 20 45 58 54 45 4e |unction |-- EXTEN|
|000025e0| 44 20 6d 65 0a 09 7d 0a | 09 74 68 69 73 2e 73 65 |D me..}.|.this.se|
|000025f0| 6c 65 63 74 69 6f 6e 48 | 61 6e 64 6c 65 72 28 6e |lectionH|andler(n|
|00002600| 65 77 49 74 6d 2d 74 68 | 69 73 2e 74 6f 70 44 69 |ewItm-th|is.topDi|
|00002610| 73 70 6c 61 79 65 64 29 | 3b 0a 7d 0a 0a 46 53 65 |splayed)|;.}..FSe|
|00002620| 6c 65 63 74 61 62 6c 65 | 4c 69 73 74 43 6c 61 73 |lectable|ListClas|
|00002630| 73 2e 70 72 6f 74 6f 74 | 79 70 65 2e 63 6c 69 63 |s.protot|ype.clic|
|00002640| 6b 48 61 6e 64 6c 65 72 | 20 3d 20 66 75 6e 63 74 |kHandler| = funct|
|00002650| 69 6f 6e 28 69 74 6d 4e | 75 6d 29 20 0a 7b 0a 09 |ion(itmN|um) .{..|
|00002660| 74 68 69 73 2e 66 6f 63 | 75 73 52 65 63 74 2e 72 |this.foc|usRect.r|
|00002670| 65 6d 6f 76 65 4d 6f 76 | 69 65 43 6c 69 70 28 29 |emoveMov|ieClip()|
|00002680| 3b 0a 09 69 66 20 28 21 | 74 68 69 73 2e 66 6f 63 |;..if (!|this.foc|
|00002690| 75 73 65 64 29 20 7b 0a | 09 09 74 68 69 73 2e 70 |used) {.|..this.p|
|000026a0| 72 65 73 73 46 6f 63 75 | 73 28 29 3b 0a 09 7d 0a |ressFocu|s();..}.|
|000026b0| 09 74 68 69 73 2e 73 65 | 6c 65 63 74 69 6f 6e 48 |.this.se|lectionH|
|000026c0| 61 6e 64 6c 65 72 28 69 | 74 6d 4e 75 6d 29 3b 0a |andler(i|tmNum);.|
|000026d0| 09 74 68 69 73 2e 6f 6e | 4d 6f 75 73 65 55 70 20 |.this.on|MouseUp |
|000026e0| 3d 20 74 68 69 73 2e 72 | 65 6c 65 61 73 65 48 61 |= this.r|eleaseHa|
|000026f0| 6e 64 6c 65 72 3b 0a 7d | 0a 0a 46 53 65 6c 65 63 |ndler;.}|..FSelec|
|00002700| 74 61 62 6c 65 4c 69 73 | 74 43 6c 61 73 73 2e 70 |tableLis|tClass.p|
|00002710| 72 6f 74 6f 74 79 70 65 | 2e 72 65 6c 65 61 73 65 |rototype|.release|
|00002720| 48 61 6e 64 6c 65 72 20 | 3d 20 66 75 6e 63 74 69 |Handler |= functi|
|00002730| 6f 6e 28 29 20 0a 7b 0a | 09 69 66 20 28 74 68 69 |on() .{.|.if (thi|
|00002740| 73 2e 63 68 61 6e 67 65 | 46 6c 61 67 29 20 7b 0a |s.change|Flag) {.|
|00002750| 09 09 74 68 69 73 2e 65 | 78 65 63 75 74 65 43 61 |..this.e|xecuteCa|
|00002760| 6c 6c 42 61 63 6b 28 29 | 3b 0a 09 7d 0a 09 74 68 |llBack()|;..}..th|
|00002770| 69 73 2e 63 68 61 6e 67 | 65 46 6c 61 67 3d 66 61 |is.chang|eFlag=fa|
|00002780| 6c 73 65 3b 0a 09 74 68 | 69 73 2e 6f 6e 4d 6f 75 |lse;..th|is.onMou|
|00002790| 73 65 55 70 3d 75 6e 64 | 65 66 69 6e 65 64 3b 0a |seUp=und|efined;.|
|000027a0| 7d 0a 0a 46 53 65 6c 65 | 63 74 61 62 6c 65 4c 69 |}..FSele|ctableLi|
|000027b0| 73 74 43 6c 61 73 73 2e | 70 72 6f 74 6f 74 79 70 |stClass.|prototyp|
|000027c0| 65 2e 6d 79 4f 6e 53 65 | 74 46 6f 63 75 73 20 3d |e.myOnSe|tFocus =|
|000027d0| 20 66 75 6e 63 74 69 6f | 6e 28 29 20 0a 7b 0a 09 | functio|n() .{..|
|000027e0| 73 75 70 65 72 2e 6d 79 | 4f 6e 53 65 74 46 6f 63 |super.my|OnSetFoc|
|000027f0| 75 73 28 29 3b 0a 09 66 | 6f 72 20 28 76 61 72 20 |us();..f|or (var |
|00002800| 69 3d 30 3b 20 69 3c 74 | 68 69 73 2e 6e 75 6d 44 |i=0; i<t|his.numD|
|00002810| 69 73 70 6c 61 79 65 64 | 3b 20 69 2b 2b 29 20 7b |isplayed|; i++) {|
|00002820| 0a 09 09 74 68 69 73 2e | 63 6f 6e 74 61 69 6e 65 |...this.|containe|
|00002830| 72 5f 6d 63 5b 22 66 4c | 69 73 74 49 74 65 6d 22 |r_mc["fL|istItem"|
|00002840| 2b 69 2b 22 5f 6d 63 22 | 5d 2e 68 69 67 68 6c 69 |+i+"_mc"|].highli|
|00002850| 67 68 74 5f 6d 63 2e 67 | 6f 74 6f 41 6e 64 53 74 |ght_mc.g|otoAndSt|
|00002860| 6f 70 28 22 65 6e 61 62 | 6c 65 64 22 29 3b 0a 09 |op("enab|led");..|
|00002870| 7d 0a 7d 0a 0a 46 53 65 | 6c 65 63 74 61 62 6c 65 |}.}..FSe|lectable|
|00002880| 4c 69 73 74 43 6c 61 73 | 73 2e 70 72 6f 74 6f 74 |ListClas|s.protot|
|00002890| 79 70 65 2e 6d 79 4f 6e | 4b 69 6c 6c 46 6f 63 75 |ype.myOn|KillFocu|
|000028a0| 73 20 3d 20 66 75 6e 63 | 74 69 6f 6e 28 29 20 0a |s = func|tion() .|
|000028b0| 7b 0a 09 73 75 70 65 72 | 2e 6d 79 4f 6e 4b 69 6c |{..super|.myOnKil|
|000028c0| 6c 46 6f 63 75 73 28 29 | 3b 0a 09 66 6f 72 20 28 |lFocus()|;..for (|
|000028d0| 76 61 72 20 69 3d 30 3b | 20 69 3c 74 68 69 73 2e |var i=0;| i<this.|
|000028e0| 6e 75 6d 44 69 73 70 6c | 61 79 65 64 3b 20 69 2b |numDispl|ayed; i+|
|000028f0| 2b 29 20 7b 0a 09 09 74 | 68 69 73 2e 63 6f 6e 74 |+) {...t|his.cont|
|00002900| 61 69 6e 65 72 5f 6d 63 | 5b 22 66 4c 69 73 74 49 |ainer_mc|["fListI|
|00002910| 74 65 6d 22 2b 69 2b 22 | 5f 6d 63 22 5d 2e 68 69 |tem"+i+"|_mc"].hi|
|00002920| 67 68 6c 69 67 68 74 5f | 6d 63 2e 67 6f 74 6f 41 |ghlight_|mc.gotoA|
|00002930| 6e 64 53 74 6f 70 28 22 | 75 6e 66 6f 63 75 73 65 |ndStop("|unfocuse|
|00002940| 64 22 29 3b 0a 09 7d 0a | 7d 0a 0a 23 65 6e 64 69 |d");..}.|}..#endi|
|00002950| 6e 69 74 63 6c 69 70 0a | 00 00 00 00 00 00 00 00 |nitclip.|........|
|00002960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 01 00 00 |........|........|
|00002970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 80 00 |........|........|
|00002980| 00 00 80 0a 07 4d 65 74 | 68 6f 64 73 01 01 01 ff |.....Met|hods....|
|00002990| ff ff ff ff 4f 4f ff 00 | 00 00 00 01 00 00 00 00 |....OO..|........|
|000029a0| 00 00 01 00 00 00 00 00 | 00 80 00 00 00 80 03 05 |........|........|
|000029b0| 00 00 00 00 00 | |..... | |
+--------+-------------------------+-------------------------+--------+--------+